package com.cloud.school.app.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @ClassName CloudSchoolProperties
 * @Description TODO
 * @Author 36297
 * @Date 2018/12/16 21:33
 * @Version 1.0
 */
@Data
@ConfigurationProperties(prefix = "cloud.school")
public class CloudSchoolProperties {

    public static final int PAGE_PER_COUNT = 10;

    public static final int MAX_PAGE_PER_COUNT = 100;

    private String serverUrl;
    /**
     * 上传文件目录
     */
    private String fileUploadPath;

    private final Security security = new Security();

    @Data
    public static class Security {
        private String[] permitPath;
        private String[] adminPath;
        private String[] userpath;
    }

}
